package org.iabako.shared.iservice.business;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import org.iabako.shared.entity.business.Installment;
import org.iabako.shared.entity.business.Sale;
import org.iabako.shared.exception.IabakoPackageForbiddenException;
import org.iabako.shared.iservice.generic.CRUDService;
import org.iabako.shared.iservice.generic.SearchService;

import java.util.List;

/**
 * Created by jose on 02/09/14.
 */

@RemoteServiceRelativePath("iabakoServices/installmentService")
public interface InstallmentService extends SearchService, CRUDService, RemoteService {

    Installment save(Installment installment, boolean noTrack);

    Installment save(Installment installment);

    List<Installment> getBySale(Sale entity);

    Boolean remove(Installment installment, boolean noTrack);
}
